import { createStore } from 'vuex';

const store = createStore({
  state: {
    user_id: null,
  },
  mutations: {
    login(state, payload) {
      state.user_id = payload.user_id;
    },
  },
  actions: {
    login({ commit }, payload) {
      commit('login', payload);
    },
  },
});


export default store;
